<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Panoramap - Sign up</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<style type="text/css">
#signup {
	float: center;
	width: 80px;
	padding:2px;
	border-right-color:#000000;
	font: normal Arial, Helvetica, sans-serif;

}
</style>
<link href="/gmap/template/default.css" rel="stylesheet" type="text/css" />
<script src='/gmap/src/prototype.js' type='text/javascript'></script>
<script src="/gmap/src/norightclick.js" type="text/javascript"></script>
<script type='text/javascript'>
function Validate(user)
{
	new Ajax.Request('/gmap/src/checkUser.php?uname='+ user,
	{
		method:'get' ,
		onSuccess: function(transport) {
		$('msg').innerHTML = transport.responseText;
		},
	});
}
</script>
</head>
<body>
<!-- header begin -->
<?php include('include/header.php');?>

<!-- menu begin -->
<?php include('include/menu.php');?>

<!-- content begin -->
<div id="content">
	<div id="main">
		<div  id="login" class="boxed" style="width: 700px;">
        <h2 class="title">Sign up</h2>
		
		<?php echo form_open('gmap/v1/do_signup');?>
		<fieldset>
		<label for="inputtext1">&nbsp;&nbsp;User name :</label>&nbsp;&nbsp;
		
		<input type="text" name="uname" size="25" id="inputtext1" value="<?php echo set_value('uname'); ?>" onKeyUp="Validate(this.value)"onFocus="Validate(this.value)"><div id="msg"></div>
		<label for="inputtext1">&nbsp;&nbsp;Password :</label>&nbsp;&nbsp;
		<input type="password" name="pwd" size="25" id="inputtext1">
		<label for="inputtext1">&nbsp;&nbsp;Re-Password :</label>&nbsp;&nbsp;
		<input type="password" name="pwd2" size="25" id="inputtext1">
		<label for="inputtext1">&nbsp;&nbsp;Email :</label>&nbsp;&nbsp;
		<input type="text" name="email" size="25" id="inputtext1" value="<?php echo set_value('email'); ?>">
		<div class="content" style="color:red;">
		<?php echo validation_errors(); ?>
		
		<input type="submit" value=" Submit " id="signup" />
		</fieldset>
		</form>
		</div>
	</div>
</div>


<!-- footer begin -->
<?php include('include/footer.php'); ?>
</body>
</html>
